/*
 * @Descripttion: 
 * @version: 
 * @Author: ybac
 * @Date: 2022-11-04 11:17:29
 * @LastEditors: Please set LastEditors
 * @LastEditTime: 2023-03-13 17:35:37
 */
export const columnsValue = [
  {
    title: '姓名',
    width: 120,
    ellipsis: true,
    dataIndex: 'realname',
    searchKey: 'realName',
    scopedSlots: {
      filterDropdown: 'searchInput',
      filterIcon: 'searchIcon',
    },
  },
  {
    title: '部门',
    width: 120,
    ellipsis: true,
    dataIndex: 'departNames',
  },
  {
    title: '账号状态',
    width: 120,
    ellipsis: true,
    sorter: true,
    dataIndex: 'status',
    searchKey: 'status',
    optionValue: 'value',
    optionLabel: 'text',
    scopedSlots: {
      // filterDropdown: 'selectDropdown',
      // filterIcon: 'selectIcon',
      customRender: 'status',
    },
  },
  {
    title: '账号',
    width: 150,
    ellipsis: true,
    dataIndex: 'username',
    searchKey: 'userName',
    scopedSlots: {
      filterDropdown: 'searchInput',
      filterIcon: 'searchIcon',
    },
  },
  {
    title: '手机号',
    width: 150,
    ellipsis: true,
    dataIndex: 'phone',
    searchKey: 'phone',
    scopedSlots: {
      filterDropdown: 'searchInput',
      filterIcon: 'searchIcon',
    },
  },
  {
    title: '角色',
    width: 180,
    ellipsis: true,
    dataIndex: 'roleNames',
    searchKey: 'roleSids',
    optionValue: 'id',
    optionLabel: 'roleName',
    scopedSlots: {
      filterDropdown: 'selectDropdown',
      filterIcon: 'selectIcon',
    },
  },
]